package factory.factory_method;

/**
 * @Author: Doream
 * @Date: 2022/1/28 12:09
 */
public class Test {
    public static void main(String[] args) {
        MilkTeaStore store = new MilkTeaStore(new RedBeanMilkTeaFactory());
        System.out.println(store.saleAMilkTea());
        store.setFactory(new CarameMilkTeaFactory());
        System.out.println(store.saleAMilkTea());
    }
}
